﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            
                Itree it= new Cat();
                ClimbTree(it);

                Iswim swim = new Duck();
                Swim(swim);

                Animal a = new Dog();
                Eat(a);
            }
            static void ClimbTree(Itree it)
            {
                it.Climb();
            }
            static void Swim(Iswim iswim)
            {
                iswim.swim();
            }
            static void Eat(Animal animal)
            {
                animal.eat();
            }
        
    }
}
